﻿using CodingDojo.Domain.KataFizzBuzz;
using NUnit.Framework;

namespace CodingDojo.Domain.Test.KataFizzBuzz
{
  [TestFixture]
  public class TestKataFizzBuzz
  {
    private FizzBuzz _fizzBuzz;

    [SetUp]
    public void Init()
    {
      _fizzBuzz = new FizzBuzz();
    }

    [Test]
    public void Test_One_Returns_One()
    {
      Assert.AreEqual("1", _fizzBuzz.GetNumber(1));
    }

    [Test]
    public void Test_Two_Returns_Two()
    {
      Assert.AreEqual("2", _fizzBuzz.GetNumber(2));
    }

    [Test]
    public void Test_Three_Returns_Fizz()
    {
      Assert.AreEqual("Fizz", _fizzBuzz.GetNumber(3));
    }

    [Test]
    public void Test_Four_Returns_Four()
    {
      Assert.AreEqual("4", _fizzBuzz.GetNumber(4));
    }

    [Test]
    public void Test_Five_Returns_Buzz()
    {
      Assert.AreEqual("Buzz", _fizzBuzz.GetNumber(5));
    }

    [Test]
    public void Test_Six_Returns_Fizz()
    {
      Assert.AreEqual("Fizz", _fizzBuzz.GetNumber(6));
    }

    [Test]
    public void Test_15_Returns_FizzBuzz()
    {
      Assert.AreEqual("FizzBuzz", _fizzBuzz.GetNumber(15));
    }

    [Test]
    public void Test_100_Returns_Buzz()
    {
      Assert.AreEqual("Buzz", _fizzBuzz.GetNumber(100));
    }
  }
}
